<template>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">
                <img src="../../assets/logo.png" alt="">
            </div>
            <!-- 头部区域） -->
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;" class="userinfo">
                        <img src="../../assets/你好.jpg" class="layui-nav-img">
                        <span class="text-avatar">A</span>
                        个人中心
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="" target="fm">基本资料</a></dd>
                        <dd><a href="" target="fm">更换头像</a></dd>
                        <dd><a href="" target="fm">重置密码</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;" id="btnLogout">
                        退出
                        <span class="iconfont icon-tuichu"></span>
                    </a>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <div class="userinfo">
                    <img src="../../assets/你好.jpg" class="layui-nav-img">
                    <span class="text-avatar">A</span>
                    <span id="welcome">欢迎 xxx</span>
                </div>
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test" lay-shrink="all">
                    <li class="layui-nav-item layui-this">
                        <a href="" target="fm">
                            <span class="iconfont icon-home"></span>
                            首页
                        </a>
                    </li>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:;"><span class="iconfont icon-16"></span>文章管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    文章类别
                                </a>
                            </dd>
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    文章列表
                                </a>
                            </dd>
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    发布文章
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><span class="iconfont icon-user"></span>个人中心</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    基本资料
                                </a>
                            </dd>
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    更换头像
                                </a>
                            </dd>
                            <dd>
                                <a href="" target="fm">
                                    <i class="layui-icon layui-icon-app"></i>
                                    重置密码
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
           
            <router-view/>
        </div>
    </div>
</template>

<script>
export default {
  name: 'home'
}
</script>

<style scoped>

.layui-footer {
    text-align: center;
    font-size: 12px;
}

.iconfont {
    margin-right: 8px;
}

.layui-icon {
    margin-right: 8px;
    margin-left: 20px;
}

iframe {
    width: 100%;
    height: 100%;
}

.layui-body {
    overflow: hidden;
}

/* 干掉所有c3动画 */
a {
    transform: none !important;
}

.userinfo {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 12px;
    user-select: none;
}

.layui-side-scroll .userinfo {
    border-bottom: 1px solid #282b33;
}

.layui-nav-img {
    width: 40px;
    height: 40px;
    /* background: url(../../assets/images/你好.jpg); */
}

.text-avatar {
    display: inline-block;
    position: relative;
    top: 4px;
    width: 40px;
    height: 40px;
    color: #fff !important;
    background-color: #009688;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    margin-right: 10px;
}
</style>